package com.general.message.push.sms.request;

import lombok.Data;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

@Data
public class Andon {
    private String user;
    private String location;
    private String time = LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"));
    private String alarm;

    public Andon() {}

    public Andon(String user, String location, String alarm) {
        this.user = user;
        this.location = location;
        this.alarm = alarm;
    }

    public static void main(String[] args) {
        Object andon = new Andon();

        Class<Andon> andonClass = Andon.class;

        System.out.println(andonClass == andon.getClass());
    }
}
